<?php defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class DocarioViewGroup extends JView {
    function display($tpl=null) {
        JToolBarHelper::title(JText::_('GROUP'));
        JToolBarHelper::addNewX('addgroup');
        JToolBarHelper::editList('editgroup');
        JToolBarHelper::deleteList(JText::_('ARE_YOU_SURE'), 'deletegroup');
        
        JToolBarHelper::divider();
        JToolBarHelper::preferences('com_docario');
        
        $model = $this->getModel();
        
        $data = $model->getData();
        $pagination = $model->getPagination();
        
        $this->assignRef('data', $data);
        $this->assignRef('pagination', $pagination);
        
        parent::display($tpl);
    }
}
